#include "thread_pool.hpp"
#include <functional>
#include <iostream>
#include "task.hpp"
using namespace thread_pool_module;
using namespace logger_module;
using task_t = std::function<void()>;
int main()
{
    thread_pool<task_t>::get_instance();
    int cnt=10;
    while(cnt--)
    {
        thread_pool<task_t>::get_instance()->equeue(download);
        sleep(1);
    }
    thread_pool<task_t>::get_instance()->stop();
    thread_pool<task_t>::get_instance()->join();
    return 0;
}